->>
object ->>
Value members
Concrete methods
def unapply[F[_] : Applicative](req: Request[F]): Some[(PartialFunction[Method, F[Response[F]]] => F[Response[F]], Path)]
Extractor to match an http resource and then enumerate all supported methods:
Extractor to match an http resource and then enumerate all supported methods:
(request.method, Path(request.path)) match {
case withMethod ->> Root / "test.json" => withMethod {
case Method.GET => ...
case Method.POST => ...
Returns an error response if the method is not matched, in accordance with RFC7231